package com.weds.frame.common.util;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.List;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2023/4/24 11:22
 */
public class CurrentListener extends AnalysisEventListener {

    private List list ;

    public CurrentListener(List list){
        this.list = list;
    }

    private List getList(){
        return this.list;
    }

    @Override
    public void invoke(Object data, AnalysisContext context) {
        this.list.add(data);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext context) {

    }
}
